#include "cup.hpp"

Cup::Cup(const std::string &name = "Пустая чашка", int content = 0): Container(500, content), m_contentName(name)
{

}
const std::string& Cup::getName() const
{
	return m_contentName;
}
void Cup::printCup()
{
	std::cout<<*this<<std::endl;
}
std::ostream& operator<<(std::ostream &out, const Cup &cup)
{
	out<<"Название напитка"<<"\t"<<cup.m_contentName<<std::endl;
	out<<"Размер стакана"<<"\t"<<cup.m_capacity<<std::endl;
	out<<"Колличестов напитка"<<"\t"<<cup.m_content<<std::endl;
	return out;
}